<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Aria: ArRobotBatteryPacketReader Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Aria
   &#160;<span id="projectnumber">2.9.4</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classArRobotBatteryPacketReader.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classArRobotBatteryPacketReader-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">ArRobotBatteryPacketReader Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>This class will read a config packet from the robot.  
 <a href="classArRobotBatteryPacketReader.html#details">More...</a></p>

<p><code>#include &lt;ArRobotBatteryPacketReader.h&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:abb846fbc65c4eafb4c344d089cd414f0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abb846fbc65c4eafb4c344d089cd414f0"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArRobotBatteryPacketReader.html#abb846fbc65c4eafb4c344d089cd414f0">ArRobotBatteryPacketReader</a> (<a class="el" href="classArRobot.html">ArRobot</a> *robot)</td></tr>
<tr class="memdesc:abb846fbc65c4eafb4c344d089cd414f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:abb846fbc65c4eafb4c344d089cd414f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd19fa49a2cb2a74a5ce251632317bdd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abd19fa49a2cb2a74a5ce251632317bdd"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArRobotBatteryPacketReader.html#abd19fa49a2cb2a74a5ce251632317bdd">getAbsSOC</a> (int battery)</td></tr>
<tr class="memdesc:abd19fa49a2cb2a74a5ce251632317bdd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the absolute state of charge for a particular battery. <br /></td></tr>
<tr class="separator:abd19fa49a2cb2a74a5ce251632317bdd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9379ef29ff2748e28999db4bc73389fd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9379ef29ff2748e28999db4bc73389fd"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArRobotBatteryPacketReader.html#a9379ef29ff2748e28999db4bc73389fd">getFlags1</a> (int battery)</td></tr>
<tr class="memdesc:a9379ef29ff2748e28999db4bc73389fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the flags1 for a particular battery. <br /></td></tr>
<tr class="separator:a9379ef29ff2748e28999db4bc73389fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0041972b3f4e0c04686920f76abe7b8f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0041972b3f4e0c04686920f76abe7b8f"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArRobotBatteryPacketReader.html#a0041972b3f4e0c04686920f76abe7b8f">getFlags2</a> (int battery)</td></tr>
<tr class="memdesc:a0041972b3f4e0c04686920f76abe7b8f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the flags2 for a particular battery. <br /></td></tr>
<tr class="separator:a0041972b3f4e0c04686920f76abe7b8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a090cbf36ed79b532ec8233fd1a535d3e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a090cbf36ed79b532ec8233fd1a535d3e"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArRobotBatteryPacketReader.html#a090cbf36ed79b532ec8233fd1a535d3e">getFlags3</a> (int battery)</td></tr>
<tr class="memdesc:a090cbf36ed79b532ec8233fd1a535d3e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the flags3 for a particular battery. <br /></td></tr>
<tr class="separator:a090cbf36ed79b532ec8233fd1a535d3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a897115a204b9928f4899aee1e45be2e3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a897115a204b9928f4899aee1e45be2e3"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArRobotBatteryPacketReader.html#a897115a204b9928f4899aee1e45be2e3">getNumBatteries</a> (void) const </td></tr>
<tr class="memdesc:a897115a204b9928f4899aee1e45be2e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the number of batteries. <br /></td></tr>
<tr class="separator:a897115a204b9928f4899aee1e45be2e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab52392feb2e443ff3c0c9680918dcdd1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab52392feb2e443ff3c0c9680918dcdd1"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArRobotBatteryPacketReader.html#ab52392feb2e443ff3c0c9680918dcdd1">getNumBytesPerBattery</a> (void) const </td></tr>
<tr class="memdesc:ab52392feb2e443ff3c0c9680918dcdd1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the number of bytes per battery. <br /></td></tr>
<tr class="separator:ab52392feb2e443ff3c0c9680918dcdd1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa608a24a806f630f9d78ca476b8e359d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa608a24a806f630f9d78ca476b8e359d"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArRobotBatteryPacketReader.html#aa608a24a806f630f9d78ca476b8e359d">getRelSOC</a> (int battery)</td></tr>
<tr class="memdesc:aa608a24a806f630f9d78ca476b8e359d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the relative state of charge for a particular battery. <br /></td></tr>
<tr class="separator:aa608a24a806f630f9d78ca476b8e359d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8cc7dcdd47c351fc47c76050f9bc3933"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8cc7dcdd47c351fc47c76050f9bc3933"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArRobotBatteryPacketReader.html#a8cc7dcdd47c351fc47c76050f9bc3933">hasPacketArrived</a> (void) const </td></tr>
<tr class="memdesc:a8cc7dcdd47c351fc47c76050f9bc3933"><td class="mdescLeft">&#160;</td><td class="mdescRight">See if we've gotten the data. <br /></td></tr>
<tr class="separator:a8cc7dcdd47c351fc47c76050f9bc3933"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a508ec01c6b79d902da68e0bb9097639e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a508ec01c6b79d902da68e0bb9097639e"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArRobotBatteryPacketReader.html#a508ec01c6b79d902da68e0bb9097639e">haveRequestedPackets</a> (void)</td></tr>
<tr class="memdesc:a508ec01c6b79d902da68e0bb9097639e"><td class="mdescLeft">&#160;</td><td class="mdescRight">See if we've requested packets. <br /></td></tr>
<tr class="separator:a508ec01c6b79d902da68e0bb9097639e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19e0721f5d6087c2d3e397f535af0c36"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a19e0721f5d6087c2d3e397f535af0c36"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArRobotBatteryPacketReader.html#a19e0721f5d6087c2d3e397f535af0c36">requestContinuousPackets</a> (void)</td></tr>
<tr class="memdesc:a19e0721f5d6087c2d3e397f535af0c36"><td class="mdescLeft">&#160;</td><td class="mdescRight">Request a continous stream of packets. <br /></td></tr>
<tr class="separator:a19e0721f5d6087c2d3e397f535af0c36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af237ef3d0909aac3ef8e9fbfa9623cae"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af237ef3d0909aac3ef8e9fbfa9623cae"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArRobotBatteryPacketReader.html#af237ef3d0909aac3ef8e9fbfa9623cae">requestSinglePacket</a> (void)</td></tr>
<tr class="memdesc:af237ef3d0909aac3ef8e9fbfa9623cae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Request a single packet.. <br /></td></tr>
<tr class="separator:af237ef3d0909aac3ef8e9fbfa9623cae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a047757a75fedc120b1ff9cf6d2f327db"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a047757a75fedc120b1ff9cf6d2f327db"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArRobotBatteryPacketReader.html#a047757a75fedc120b1ff9cf6d2f327db">stopPackets</a> (void)</td></tr>
<tr class="memdesc:a047757a75fedc120b1ff9cf6d2f327db"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stop the stream of packets. <br /></td></tr>
<tr class="separator:a047757a75fedc120b1ff9cf6d2f327db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a998f2277863d62db89ca89b9d3dbdf53"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a998f2277863d62db89ca89b9d3dbdf53"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArRobotBatteryPacketReader.html#a998f2277863d62db89ca89b9d3dbdf53">~ArRobotBatteryPacketReader</a> ()</td></tr>
<tr class="memdesc:a998f2277863d62db89ca89b9d3dbdf53"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a998f2277863d62db89ca89b9d3dbdf53"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a6c79b07fdcaa7e9ab0f9dc75dd6c1a71"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6c79b07fdcaa7e9ab0f9dc75dd6c1a71"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArRobotBatteryPacketReader.html#a6c79b07fdcaa7e9ab0f9dc75dd6c1a71">connectCallback</a> (void)</td></tr>
<tr class="memdesc:a6c79b07fdcaa7e9ab0f9dc75dd6c1a71"><td class="mdescLeft">&#160;</td><td class="mdescRight">internal, packet handler <br /></td></tr>
<tr class="separator:a6c79b07fdcaa7e9ab0f9dc75dd6c1a71"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a086ea654076b0a4551de8312b800122e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a086ea654076b0a4551de8312b800122e"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArRobotBatteryPacketReader.html#a086ea654076b0a4551de8312b800122e">packetHandler</a> (<a class="el" href="classArRobotPacket.html">ArRobotPacket</a> *packet)</td></tr>
<tr class="memdesc:a086ea654076b0a4551de8312b800122e"><td class="mdescLeft">&#160;</td><td class="mdescRight">internal, packet handler <br /></td></tr>
<tr class="separator:a086ea654076b0a4551de8312b800122e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a61720604ce55f113cb82a320570dfcba"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a61720604ce55f113cb82a320570dfcba"></a>
std::map&lt; int, int &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>myAbsSOC</b></td></tr>
<tr class="separator:a61720604ce55f113cb82a320570dfcba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a60816513ad37788dc36cfa30ffc126"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6a60816513ad37788dc36cfa30ffc126"></a>
<a class="el" href="classArFunctorC.html">ArFunctorC</a>&lt; <a class="el" href="classArRobotBatteryPacketReader.html">ArRobotBatteryPacketReader</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>myConnectCB</b></td></tr>
<tr class="separator:a6a60816513ad37788dc36cfa30ffc126"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09f1789c71af60a705e61932e8276e4d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a09f1789c71af60a705e61932e8276e4d"></a>
std::map&lt; int, int &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>myFlags1</b></td></tr>
<tr class="separator:a09f1789c71af60a705e61932e8276e4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a161ed2fdb50e705fe9926ff30229be70"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a161ed2fdb50e705fe9926ff30229be70"></a>
std::map&lt; int, int &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>myFlags2</b></td></tr>
<tr class="separator:a161ed2fdb50e705fe9926ff30229be70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a591598d2e3363173d77334fd2b5c53ef"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a591598d2e3363173d77334fd2b5c53ef"></a>
std::map&lt; int, int &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>myFlags3</b></td></tr>
<tr class="separator:a591598d2e3363173d77334fd2b5c53ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0fc09ed6b1db75a73efdeb12aba41d70"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0fc09ed6b1db75a73efdeb12aba41d70"></a>
<a class="el" href="classArTime.html">ArTime</a>&#160;</td><td class="memItemRight" valign="bottom"><b>myLastPacketRequest</b></td></tr>
<tr class="separator:a0fc09ed6b1db75a73efdeb12aba41d70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b2f58b324b52315470b53bce6461b20"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4b2f58b324b52315470b53bce6461b20"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>myNumBatteries</b></td></tr>
<tr class="separator:a4b2f58b324b52315470b53bce6461b20"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1fff7a6dfe08dcdda4e8857241ebb0d9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1fff7a6dfe08dcdda4e8857241ebb0d9"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>myNumBytesPerBattery</b></td></tr>
<tr class="separator:a1fff7a6dfe08dcdda4e8857241ebb0d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7dfb1f5645f3335a8b74e664b9504409"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7dfb1f5645f3335a8b74e664b9504409"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>myPacketArrived</b></td></tr>
<tr class="separator:a7dfb1f5645f3335a8b74e664b9504409"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12f96e10964e8d42b250f4a45d138ba1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a12f96e10964e8d42b250f4a45d138ba1"></a>
<a class="el" href="classArRetFunctor1C.html">ArRetFunctor1C</a>&lt; bool, <a class="el" href="classArRobotBatteryPacketReader.html">ArRobotBatteryPacketReader</a>, <a class="el" href="classArRobotPacket.html">ArRobotPacket</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>myPacketHandlerCB</b></td></tr>
<tr class="separator:a12f96e10964e8d42b250f4a45d138ba1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f690c8239c4115b98fe4c33aa54ca86"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2f690c8239c4115b98fe4c33aa54ca86"></a>
std::map&lt; int, int &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>myRelSOC</b></td></tr>
<tr class="separator:a2f690c8239c4115b98fe4c33aa54ca86"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39d194f8e32b245d1dafee8e4e6269ed"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a39d194f8e32b245d1dafee8e4e6269ed"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>myRequestedBatteryPackets</b></td></tr>
<tr class="separator:a39d194f8e32b245d1dafee8e4e6269ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa32451a3dd7394f25e6f151817adce01"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa32451a3dd7394f25e6f151817adce01"></a>
<a class="el" href="classArRobot.html">ArRobot</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>myRobot</b></td></tr>
<tr class="separator:aa32451a3dd7394f25e6f151817adce01"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This class will read a config packet from the robot. </p>
</div><hr/>The documentation for this class was generated from the following files:<ul>
<li>ArRobotBatteryPacketReader.h</li>
<li>ArRobotBatteryPacketReader.cpp</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="classArRobotBatteryPacketReader.html">ArRobotBatteryPacketReader</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
